From: Heiko Hösch Date: Wed, 21 Dec 2022 08:13:31 +0000 (+0000) Subject: status/network: Work around xgettext ignoring translated strings X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~158 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=35e2ac7a2a185fe4c072ca271dde3b041a6ddec1;p=gnome-shell.git status/network: Work around xgettext ignoring translated strings xgettext quits parsing, when the "<"-operator follows the "++"-operator directly. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5820 Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 6d21e2d59..571231d7a 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1223,7 +1223,9 @@ const NMWirelessDeviceItem = GObject.registerClass({ const {network: net} = item; item.visible = (hasWindows || net.hasConnections() || net.canAutoconnect()) && - nVisible++ < MAX_VISIBLE_NETWORKS; + nVisible < MAX_VISIBLE_NETWORKS; + if (item.visible) + nVisible++; } }